﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  targetNamespace="urn:BBECServiceBusAdapter"
  elementFormDefault="qualified" 
  attributeFormDefault="unqualified" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:bbec="urn:BBECServiceBusAdapter"
  >
           
  <!--Type definition-->
  <xs:simpleType name="ErrorLevelEnum">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Information" />
      <xs:enumeration value="Warning" />
      <xs:enumeration value="Error" />
    </xs:restriction>
  </xs:simpleType>

  <xs:element name="ErrorCodes">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="ErrorCode" minOccurs="1" maxOccurs="unbounded">
          <xs:complexType>
            <xs:attribute name="Code" type="xs:string" use="required" />
            <xs:attribute name="Description" type="xs:string" use="required" />
            <xs:attribute name="Level" type="bbec:ErrorLevelEnum" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>